package org.example;

public class Person {
    private String name;

    public Person(String name){
        this.name = name;
    }

    public void drive(Vehicle vehicle){
        System.out.println(name + "正在开车....");
        vehicle.move();
    }
}
